import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path:'/',
      redirect: '/views/Client/index'
    },
    {
      path:'/Client',
      redirect: '/views/login/login'
    },
    // 登录
    {
      path: '/views/login/login',
      name:'login',
      component:() => import("../views/login/login")
    },
    // 注册
    {
      path: "/views/login/register",
      name: "register",
      component: () => import("../views/login/register")
    },
    // 首页
    {
      path: '/components/ClientComponents/lib/tabBar',
      name: 'tabBar',
      component: () => import("../components/ClientComponents/lib/tabBar"),
      redirect: '/views/Client/index',
      children: [
        {
          path: '/views/Client/index',
          name: 'Client/index',
          meta:{keepAlive: true} ,
          component: () => import("../views/Client/index")
        },
        {
          path: "/views/Client/my",
          name: 'Client/my',
          meta:{keepAlive: true} ,
          component: () => import("../views/Client/my"),
        }
      ]
    },
    {
      path: "/views/Client/errands",
      name: "errands",
      component: () => import("../views/Client/errands"),
      redirect:"/components/ClientComponents/errands/giveSchool",
      children:[
        {
          path: "/components/ClientComponents/errands/giveSchool",
          name: "giveSchool",
          component: () => import("../components/ClientComponents/errands/giveSchool")
        },
        {
          path: "/components/ClientComponents/errands/helpTake",
          name: "helpTake",
          component: () => import("../components/ClientComponents/errands/helpTake")
        }
      ]
    },
    // 跑腿订单列表页
    {
      path: "/views/Client/runOrderList",
      name: 'runOrderList',
      component: () => import("../views/Client/runOrderList")
    },{
      // 跑腿订单信息详情页
      path: "/views/Client/runOrderDetails",
      name: 'runOrderDetails',
      component: () => import("../views/Client/runOrderDetails")
    },
    // 跑腿订单支付页面
    {
      path: "/views/Client/RunPaymentOrder",
      name: "RunPaymentOrder",
      component: () => import("../views/Client/RunPaymentOrder")
    },
    {
      path: "/views/Client/myAddress",
      name: 'myAddress',
      component: () => import("../views/Client/myAddress")
    },
    {
      path: "/views/Client/addAddress",
      name: 'addAddress',
      component: () => import("../views/Client/addAddress")
    },
    {
      path: "/views/Client/assemble",
      name: 'assemble',
      component: () => import("../views/Client/assemble")
    },
    // 校园资讯
    {
      path: "/views/Client/CampusInformation",
      name: 'CampusInformation',
      component: () => import("../views/Client/CampusInformation")
    }, {
      path: "/views/Client/coupon",
      name: 'coupon',
      component: () => import("../views/Client/coupon")
    }, {
      path: "/views/Client/problem",
      name: 'problem',
      component: () => import("../views/Client/problem")
    }, {
      path: "/views/Client/recharge",
      name: 'recharge',
      component: () => import("../views/Client/recharge")
    }, {
      path: "/views/Client/setUp",
      name: 'setUp',
      component: () => import("../views/Client/setUp")
    }, {
      path: "/views/Client/integral",
      name: 'integral',
      component: () => import("../views/Client/integral")
    }, {
      path: "/views/Client/groupDetails",
      name: 'groupDetails',
      component: () => import("../views/Client/groupDetails")
    }, {
      path: "/views/Client/groupOrder",
      name: 'groupOrder',
      component: () => import("../views/Client/groupOrder")
    }, {
      path: "/views/Client/ptDetails",
      name: 'ptDetails',
      component: () => import("../views/Client/ptDetails")
    }, {
      path: "/views/Client/order",
      name: 'order',
      component: () => import("../views/Client/order")
    },
    // 多订单
    {
      path: "/views/Client/manyOrder",
      name: 'manyOrder',
      component: () => import("../views/Client/manyOrder")
    }, {
      path: "/views/Client/panicBuy",
      name: 'panicBuy',
      component: () => import("../views/Client/panicBuy"),
      redirect: "/components/ClientComponents/panicBuy/panicBuyAll",
      children: [
        {
          path: "/components/ClientComponents/panicBuy/panicBuyAll",
          name: 'panicBuy/panicBuyAll',
          component: () => import("../components/ClientComponents/panicBuy/panicBuyAll")
        }
      ]
    }, {
      path: "/views/Client/panicDetails",
      name: 'panicDetails',
      component: () => import("../views/Client/panicDetails")
    }, {
      path: "/views/Client/arder",
      name: 'arder',
      component: () => import("../views/Client/arder"),
      redirect: "/components/ClientComponents/arder/arderMovie",
      children: [
        {
          path: "/components/ClientComponents/arder/arderMovie",
          name: 'arder/arderMovie',
          component: () => import("../components/ClientComponents/arder/arderMovie")
        },
        {
          path: "/components/ClientComponents/arder/panicBuyDelicious",
          name: 'arder/panicBuyDelicious',
          component: () => import("../components/ClientComponents/arder/panicBuyDelicious")
        }
      ]
    }, {
      path: "/views/Client/myOrder",
      name: "myOrder",
      component: () => import("../views/Client/myOrder"),
      redirect: "/components/ClientComponents/order/orderAll",
      children: [
        {
          path: "/components/ClientComponents/order/orderAll",
          name: "order/orderAll",
          component: () => import("../components/ClientComponents/order/orderAll")
        },{
          path: "/components/ClientComponents/order/delivery",
          name: "order/delivery",
          component: () => import("../components/ClientComponents/order/delivery")
        },{
          path: "/components/ClientComponents/order/completed",
          name: "order/completed",
          component: () => import("../components/ClientComponents/order/completed")
        },{
          path: "/components/ClientComponents/order/orderEvaluate",
          name: "order/orderEvaluate",
          component: () => import("../components/ClientComponents/order/orderEvaluate")
        },{
          path: "/components/ClientComponents/order/ToBeDelivered",
          name: "order/ToBeDelivered",
          component: () => import("../components/ClientComponents/order/ToBeDelivered")
        },{
          path: "/components/ClientComponents/order/ToBePaid",
          name: "order/ToBePaid",
          component: () => import("../components/ClientComponents/order/ToBePaid")
        }
      ]
    },
    {
      path: "/views/Client/goEvaluate",
      name: 'goEvaluate',
      component: () => import("../views/Client/goEvaluate")
    },
    // 认证状态
    {
      path: "/views/Client/CertificationStatus",
      name: 'CertificationStatus',
      component: () => import("../views/Client/CertificationStatus")
    },
    {
      path: "/views/Client/CommodityEvaluation",
      name: 'CommodityEvaluation',
      component: () => import("../views/Client/CommodityEvaluation")
    },
    {
      path: "/views/Client/deliveryDetails",
      name: 'deliveryDetails',
      component: () => import("../views/Client/deliveryDetails")
    },{
      path: "/views/Client/ticketPurchase",
      name: 'ticketPurchase',
      component: () => import("../views/Client/ticketPurchase")
    },
    {
      path: "/views/Client/orderDetails",
      name: 'orderDetails',
      component: () => import("../views/Client/orderDetails")
    },
    {
      path: "/views/Client/deliciousFood",
      name: 'deliciousFood',
      component: () => import("../views/Client/deliciousFood")
    },
    {
      path: "/views/Client/helpBuy",
      name: 'helpBuy',
      component: () => import("../views/Client/helpBuy")
    },
    {
      path: "/views/Client/outFood",
      name: 'outFood',
      component: () => import("../views/Client/outFood")
    },
    {
      path: "/views/Client/shopInfo",
      name: 'shopInfo',
      component: () => import("../views/Client/shopInfo"),
      redirect: "/components/ClientComponents/shopInfo/shopInfoShop",
      children:[
        {
          path: "/components/ClientComponents/shopInfo/shopInfoShop",
          name: "shopInfo/shopInfoShop",
          component: () => import("../components/ClientComponents/shopInfo/shopInfoShop")
        },
        {
          path: "/components/ClientComponents/shopInfo/BusinessEvaluation",
          name: "shopInfo/BusinessEvaluation",
          component: () => import("../components/ClientComponents/shopInfo/BusinessEvaluation")
        },
        {
          path: "/components/ClientComponents/shopInfo/shopInfoSellWell",
          name: "shopInfo/shopInfoSellWell",
          component: () => import("../components/ClientComponents/shopInfo/shopInfoSellWell")
        }
      ]
    },
    {
      path:"/views/Client/life",
      name:"life",
      component: () => import("../views/Client/life"),
      redirect:"/components/ClientComponents/life/lifeIndex",
      children:[
        {
          path:"/components/ClientComponents/life/lifeIndex",
          name:"life/lifeIndex",
          component: () => import("../components/ClientComponents/life/lifeIndex")
        },
        {
          path:"/components/ClientComponents/life/lifeMy",
          name:"lifeMy",
          component: () => import("../components/ClientComponents/life/lifeMy")
        }
      ]
    },
    {
      path:"/components/ClientComponents/life/release",
      name:"life/release",
      component: () => import("../components/ClientComponents/life/release")
    },
    {
      path:"/views/Client/posting",
      name:"posting",
      component: () => import("../views/Client/posting")
    },
    {
      path:"/views/Client/postOfRelease",
      name:"postOfRelease",
      component: () => import("../views/Client/postOfRelease")
    },
    // 二手商品详情
    {
      path:"/views/Client/twoHandShopDetail",
      name:"twoHandShopDetail",
      component: () => import("../views/Client/twoHandShopDetail")
    },
    // 二手订单详情
    {
      path:"/views/Client/twoHandsOrderDetails",
      name:"twoHandsOrderDetails",
      component: () => import("../views/Client/twoHandsOrderDetails")
    },
    // 二手订单确认页面
    {
      path:"/views/Client/confirmTwoHandsOrder",
      name:"confirmTwoHandsOrder",
      component: () => import("../views/Client/confirmTwoHandsOrder")
    },
    // 二手订单列表页面
    {
      path:"/views/Client/twoHandsOrderList",
      name:"twoHandsOrderList",
      component: () => import("../views/Client/twoHandsOrderList")
    },
    // 二手订单联系卖家页面
    {
      path:"/views/Client/twHandsContactSeller",
      name:"twHandsContactSeller",
      component: () => import("../views/Client/twHandsContactSeller")
    },
    // 二手简历投递记录页面
    {
      path:"/views/Client/twHandsDeliveryRecord",
      name:"twHandsDeliveryRecord",
      component: () => import("../views/Client/twHandsDeliveryRecord")
    },
    // 简历投递详情页面
    {
      path:"/views/Client/twHandsDeliveryDetails",
      name:"twHandsDeliveryDetails",
      component: () => import("../views/Client/twHandsDeliveryDetails")
    },
    // 简历职位管理页面
    {
      path:"/views/Client/PositionManagement",
      name:"PositionManagement",
      component: () => import("../views/Client/PositionManagement")
    },
    // 推广中心
    {
      path:"/views/Client/PromotionCenter",
      name:"PromotionCenter",
      component: () => import("../views/Client/PromotionCenter")
    },
    // 我的团队
    {
      path:"/views/Client/extensionMyTeam",
      name:"extensionMyTeam",
      component: () => import("../views/Client/extensionMyTeam")
    },
    // 推广订单
    {
      path:"/views/Client/extensionOrder",
      name:"extensionOrder",
      component: () => import("../views/Client/extensionOrder")
    },
    // 推广二维码
    {
      path:"/views/Client/extensionQRcode",
      name:"extensionQRcode",
      component: () => import("../views/Client/extensionQRcode")
    },
    // 提现
    {
      path:"/views/Client/extensionWithdrawal",
      name:"extensionWithdrawal",
      component: () => import("../views/Client/extensionWithdrawal")
    },
    // 收益明细
    {
      path:"/views/Client/extensionIncomeDetails",
      name:"extensionIncomeDetails",
      component: () => import("../views/Client/extensionIncomeDetails")
    },
    // 提现记录
    {
      path:"/views/Client/WithdrawalRecord",
      name:"WithdrawalRecord",
      component: () => import("../views/Client/WithdrawalRecord")
    },
    // 银行卡
    {
      path:"/views/Client/extensionBankCard",
      name:"extensionBankCard",
      component: () => import("../views/Client/extensionBankCard")
    },
    // 添加银行卡
    {
      path:"/views/Client/extensionAddBankCard",
      name:"extensionAddBankCard",
      component: () => import("../views/Client/extensionAddBankCard")
    },
    // 提现进度
    {
      path:"/views/Client/extensionWithdrawalProgress",
      name:"extensionWithdrawalProgress",
      component: () => import("../views/Client/extensionWithdrawalProgress")
    },
    // 消息通知
    {
      path:"/views/Client/myMsgNotification",
      name:"myMsgNotification",
      component: () => import("../views/Client/myMsgNotification")
    },
    {
      path:"/views/Client/integralOrder",
      name:"integralOrder",
      component: () => import("../views/Client/integralOrder")
    },
    // 跑腿收货
    {
      path:"/views/Client/RunForGoods",
      name:"RunForGoods",
      component: () => import("../views/Client/RunForGoods")
    },
    // 跑腿收发货信息
    {
      path:"/views/Client/ErrandDeliveryInformation",
      name:"ErrandDeliveryInformation",
      component: () => import("../views/Client/ErrandDeliveryInformation")
    },
    {
      path:"/views/Client/CommentDetails",
      name:"CommentDetails",
      component: () => import("../views/Client/CommentDetails")
    },
    {
      path:"/views/Client/dynamic",
      name:"dynamic",
      component: () => import("../views/Client/dynamic"),
      redirect:"/components/ClientComponents/life/comment",
      children:[
        {
          path:"/components/ClientComponents/life/spotZan",
          name:"life/spotZan",
          component: () => import("../components/ClientComponents/life/spotZan")
        },
        {
          path:"/components/ClientComponents/life/comment",
          name:"life/comment",
          component: () => import("../components/ClientComponents/life/comment")
        }
      ]
    },
    {
      path: "/views/Client/secondHandMarket",
      name: "secondHandMarket",
      component: () => import("../views/Client/secondHandMarket")
    },
    {
      path: "/views/Client/partTimeJob",
      name: "partTimeJob",
      component: () => import("../views/Client/partTimeJob")
    },
    {
      path: "/components/ClientComponents/life/HelpAndFeedback",
      name: "HelpAndFeedback",
      component: () => import("../components/ClientComponents/life/HelpAndFeedback")
    },
    {
      path: "/components/ClientComponents/life/lifeMyInfo",
      name: "lifeMyInfo",
      component: () => import("../components/ClientComponents/life/lifeMyInfo")
    },
    {
      path: "/components/ClientComponents/life/lifeTwoHandsFaBu",
      name: "lifeTwoHandsFaBu",
      component: () => import("../components/ClientComponents/life/lifeTwoHandsFaBu")
    },
    {
      path: "/views/Client/posted",
      name: "posted",
      component: () => import("../views/Client/posted")
    },
    {
      path: "/views/Client/partTimeJobCollection",
      name: "partTimeJobCollection",
      component: () => import("../views/Client/partTimeJobCollection")
    },
    {
      path: "/views/Client/lifeMyConcerns",
      name: "lifeMyConcerns",
      component: () => import("../views/Client/lifeMyConcerns")
    },
    {
      path: "/views/Client/lifeMyFans",
      name: "lifeMyFans",
      component: () => import("../views/Client/lifeMyFans")
    },
    {
      path: "/views/Client/lifeDynamic",
      name: "lifeDynamic",
      component: () => import("../views/Client/lifeDynamic")
    },
    {
      path: "/views/Client/OnlineResume",
      name: "OnlineResume",
      component: () => import("../views/Client/OnlineResume")
    },
    {
      path: "/views/Client/lifeInformation",
      name: "lifeInformation",
      component: () => import("../views/Client/lifeInformation")
    },
    {
      path: "/views/Client/addWorkExperience",
      name: "addWorkExperience",
      component: () => import("../views/Client/addWorkExperience")
    },
    {
      path: "/components/ClientComponents/lib/setMsg",
      name: "setMsg",
      component: () => import("../components/ClientComponents/lib/setMsg")
    },
    {
      path: "/views/Client/jobExpectation",
      name: "jobExpectation",
      component: () => import("../views/Client/jobExpectation")
    },
    {
      path: "/views/Client/setWorkExperience",
      name: "setWorkExperience",
      component: () => import("../views/Client/setWorkExperience")
    },
    {
      path: "/views/Client/BusinessQualification",
      name: "BusinessQualification",
      component: () => import("../views/Client/BusinessQualification")
    },
    {
      path: "/views/Client/location",
      name: "location",
      component: () => import("../views/Client/location")
    },
    {
      path: "/views/Client/search",
      name: "search",
      component: () => import("../views/Client/search")
    },
    {
      path: "/views/Client/wmDelicious",
      name: "wmDelicious",
      component: () => import("../views/Client/wmDelicious")
    },
    {
      path: "/views/Client/details",
      name: "details",
      component: () => import("../views/Client/details")
    },
    {
      path: "/views/Client/myShopCollection",
      name: "myShopCollection",
      component: () => import("../views/Client/myShopCollection")
    },
    {
      path: "/views/Client/myDianPuCollection",
      name: "myDianPuCollection",
      component: () => import("../views/Client/myDianPuCollection")
    },
    {
      path: "/views/Client/IntegralRecord",
      name: "IntegralRecord",
      component: () => import("../views/Client/IntegralRecord")
    },
    {
      path: "/views/Client/PointsExchangeRecord",
      name: "PointsExchangeRecord",
      component: () => import("../views/Client/PointsExchangeRecord")
    },
    {
      path: "/views/Client/PointExchange",
      name: "PointExchange",
      component: () => import("../views/Client/PointExchange")
    },
    {
      path: "/views/Client/PointsDetails",
      name: "PointsDetails",
      component: () => import("../views/Client/PointsDetails")
    },
    {
      path: "/views/Client/JobDetails",
      name: "JobDetails",
      component: () => import("../views/Client/JobDetails")
    },
    {
      path: "/views/Client/wantToCooperate",
      name: "wantToCooperate",
      component: () => import("../views/Client/wantToCooperate")
    },
    {
      path: "/views/Client/MerchantCertification",
      name: "MerchantCertification",
      component: () => import("../views/Client/MerchantCertification")
    },
    {
      path: "/views/Client/RiderCertification",
      name: "RiderCertification",
      component: () => import("../views/Client/RiderCertification")
    },
    {
      path: "/views/Client/PlayMusicDetails",
      name: "PlayMusicDetails",
      component: () => import("../views/Client/PlayMusicDetails")
    },
    {
      path: "/views/Client/playCoupon",
      name: "playCoupon",
      component: () => import("../views/Client/playCoupon")
    },
    {
      path: "/views/Client/ConfirmPlayOrder",
      name: "ConfirmPlayOrder",
      component: () => import("../views/Client/ConfirmPlayOrder")
    },
    {
      path: "/views/Client/PlayOrderDetails",
      name: "PlayOrderDetails",
      component: () => import("../views/Client/PlayOrderDetails")
    },{
      path: "/views/Client/BrowsingRecords",
      name: "BrowsingRecords",
      component: () => import("../views/Client/BrowsingRecords")
    },
    //商家端
    {
      path: "/views/loginBusiness/login",
      name: "loginBusiness",
      component: () => import("../views/loginBusiness/login")
    },
    {
      path: '/business',
      name: 'businessTabBar',
      component: () => import("../components/BusinessComponents/lib/tabBar"),
      redirect: '/views/Business/index',
      children: [
        {
          path: "/views/Business/index",
          name: "businessIndex",
          component: () => import("../views/Business/index")
        },
        {
          path: "/views/Business/order",
          name: "businessOrder",
          component: () => import("../views/Business/order"),
        },
        {
          path: "/views/Business/my",
          name: 'my',
          component: () => import("../views/Business/my"),
        }
      ],
      // meta:{requiresAuth:true}
    },
    {
      path: "/views/Business/storeInfo",
      name: "storeInfo",
      component: () => import("../views/Business/storeInfo")
    },
    {
      path: "/views/Business/goodsList",
      name: "goodsList",
      component: () => import("../views/Business/goodsList"),
      redirect: "/components/BusinessComponents/goodsList/sale",
      children: [
        {
          path: "/components/BusinessComponents/goodsList/all",
          name: "all",
          component: () => import("../components/BusinessComponents/goodsList/all")
        },{
          path: "/components/BusinessComponents/goodsList/sale",
          name: "sale",
          component: () => import("../components/BusinessComponents/goodsList/sale")
        },{
          path: "/components/BusinessComponents/goodsList/no",
          name: "no",
          component: () => import("../components/BusinessComponents/goodsList/no")
        },{
          path: "/components/BusinessComponents/goodsList/dismount",
          name: "dismount",
          component: () => import("../components/BusinessComponents/goodsList/dismount")
        }
      ]
    },
    {
      path: "/views/Business/addGoods",
      name: "addGoods",
      component: () => import("../views/Business/addGoods")
    },
    {
      path: "/views/Business/orderDetail",
      name: "orderDetail",
      component: () => import("../views/Business/orderDetail")
    },
    {
      path: "/views/Business/means",
      name: "means",
      component: () => import("../views/Business/means")
    },
    {
      path: "/views/Business/withdraw",
      name: "withdraw",
      component: () => import("../views/Business/withdraw")
    },
    {
      path: "/views/Business/commit",
      name: "commit",
      component: () => import("../views/Business/commit")
    },
    {
      path: "/views/Business/marketing",
      name: "marketing",
      component: () => import("../views/Business/marketing")
    },
    {
      path: "/views/Business/marketingGoodsList",
      name: "marketingGoodsList",
      component: () => import("../views/Business/marketingGoodsList")
    },
    {
      path: "/views/Business/addMarketingGoods",
      name: "addMarketingGoods",
      component: () => import("../views/Business/addMarketingGoods")
    },
    {
      path: "/views/Business/account",
      name: "account",
      component: () => import("../views/Business/account")
    },
    {
      path: "/views/Business/accountDetail",
      name: "accountDetail",
      component: () => import("../views/Business/accountDetail")
    },
    {
      path: "/views/Business/notice",
      name: "notice",
      component: () => import("../views/Business/notice")
    },
    {
      path: "/views/Business/setting",
      name: "setting",
      component: () => import("../views/Business/setting")
    },
    {
      path: "/views/Business/printer",
      name: "printer",
      component: () => import("../views/Business/printer")
    },
    {
      path: "/views/Business/problem",
      name: "businessProblem",
      component: () => import("../views/Business/problem")
    },
    {
      path: "/views/Business/about",
      name: "about",
      component: () => import("../views/Business/about")
    },
    {
      path: "/views/Business/agreement",
      name: "agreement",
      component: () => import("../views/Business/agreement")
    },
    {
      path: "/views/Business/tips",
      name: "tips",
      component: () => import("../views/Business/tips")
    },
    {
      path: "/views/Business/statistics",
      name: "statistics",
      component: () => import("../views/Business/statistics")
    },
    {
      path: "/views/Business/chooseGoods",
      name: "chooseGoods",
      component: () => import("../views/Business/chooseGoods")
    },
    {
      path: "/views/Business/goodsType",
      name: "goodsType",
      component: () => import("../views/Business/goodsType")
    },
    //配送端
    {
      path: "/views/Send/index",
      name: "sendIndex",
      component: () => import("../views/Send/index"),
      redirect: "/components/SendComponents/order/new",
      children:[
        {
          path: "/components/SendComponents/order/new",
          name: "SendOrderNew",
          component: () => import("../components/SendComponents/order/new")
        },
        {
          path: "/components/SendComponents/order/wait",
          name: "SendOrderWait",
          component: () => import("../components/SendComponents/order/wait")
        },
        {
          path: "/components/SendComponents/order/ing",
          name: "SendOrderIng",
          component: () => import("../components/SendComponents/order/ing")
        },
        {
          path: "/components/SendComponents/order/complete",
          name: "SendOrderComplete",
          component: () => import("../components/SendComponents/order/complete")
        }
      ]
    },
    {
      path: "/views/Send/orderDetail",
      name: "sendOrderDetail",
      component: () => import("../views/Send/orderDetail")
    },
    {
      path: "/views/Send/statistics",
      name: "sendStatistics",
      component: () => import("../views/Send/statistics")
    },
    {
      path: "/views/Send/account",
      name: "sendAccount",
      component: () => import("../views/Send/account")
    },
    {
      path: "/views/Send/commit",
      name: "sendCommit",
      component: () => import("../views/Send/commit")
    },
    {
      path: "/views/Send/information",
      name: "sendInformation",
      component: () => import("../views/Send/information")
    },
    {
      path: "/views/Send/setting",
      name: "sendSetting",
      component: () => import("../views/Send/setting")
    }
  ],

})




